package com.canyou.activiti.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.canyou.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 流程定义表单项目表
 * </p>
 *
 * @author canyou
 * @since 2021-03-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("act_form_data_item")
@ApiModel(value="FormDataItem对象", description="流程定义表单项目表")
public class FormDataItem extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "表单id")
    @TableField("form_data_id")
    private Long formDataId;

    @ApiModelProperty(value = "控件id(控件编号)")
    @TableField("control_id")
    private String controlId;

    @ApiModelProperty(value = "控件名称")
    @TableField("control_name")
    private String controlName;

    @ApiModelProperty(value = "控件类型(input, radio, checkbox, switch, select, city-select)")
    @TableField("control_type")
    private String controlType;

    @ApiModelProperty(value = "控件类型(string, number, date, array)")
    @TableField("data_type")
    private String dataType;

    @ApiModelProperty(value = "可选值[{label: value},{label1: value1}]")
    @TableField("optional_val")
    private String optionalVal;

    @ApiModelProperty(value = "是否必填(0: 否, 1: 是)")
    @TableField("is_required")
    private Integer isRequired;

    @ApiModelProperty(value = "输入提示语")
    @TableField("place_holder")
    private String placeHolder;

    @ApiModelProperty(value = "默认值")
    @TableField("default_val")
    private String defaultVal;

    @ApiModelProperty(value = "校验约束")
    @TableField("validate_constraint")
    private String validateConstraint;

    @ApiModelProperty(value = "是否作为下一流程参数(0: 否, 1: 是)")
    @TableField("is_param")
    private Integer isParam;


}
